import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
import router from '@/router'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import 'vant/lib/index.css'; //
import { Dialog, Toast } from 'vant'; // 正确导入


const app = createApp(App)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}



app.use(Dialog).use(Toast); // 注册组件

app.use(router)
app.mount('#app')
// createApp(App).mount('#app')
